{include file="public/head" /}
  
  <body>
    <div class="x-body">
        <form class="layui-form" method="post" action="{:url('propertyEdit')}">
            <input type="hidden" name="id"  value="{$info.id}" />
            <div class="layui-form-item">
                    <label for="name" class="layui-form-label">
                        <span class="x-red">*</span>物业名称
                    </label>
                    <div class="layui-input-inline">
                        <input type="text" id="name" name="name" required="" lay-verify="required"
                        autocomplete="off" class="layui-input" style="width:300px;" value="{$info.name}">
                    </div>
                </div>
            <div class="layui-form-item">
                <label for="service_id" class="layui-form-label">
                    <span class="x-red">*</span>服务商:
                </label>
                <div class="layui-input-inline" style="width: 300px;">
                    <select name="service_id">
                        <option value="">选择服务商</option>
                        {foreach $servicelist as $ser}
                        <option value="{$ser.id}" {if $info.service_id == $ser.id} selected="selected" {/if}>{$ser.name}</option>
                        {/foreach}
                    </select>
                </div>
            </div>
            <div class="layui-form-item">
                <label for="contacts" class="layui-form-label">
                    <span class="x-red">*</span>联系人
                </label>
                <div class="layui-input-inline">
                    <input type="text" id="contacts" name="contacts" required="" lay-verify="required"
                    autocomplete="off" class="layui-input" style="width:300px;" value="{$info.contacts}">
                </div>
            </div>
            <div class="layui-form-item">
                <label for="phone" class="layui-form-label">
                    <span class="x-red">*</span>联系电话
                </label>
                <div class="layui-input-inline">
                    <input type="text" id="phone" name="phone" required="" lay-verify="required"
                    autocomplete="off" class="layui-input" style="width:300px;" value="{$info.phone}">
                </div>
            </div>
            <div class="layui-form-item">
                <label for="address" class="layui-form-label">
                    <span class="x-red">*</span>联系地址
                </label>
                <div class="layui-input-inline">
                    <input type="text" id="address" name="address" required="" lay-verify="required"
                    autocomplete="off" class="layui-input" style="width:300px;" value="{$info.address}">
                </div>
            </div>
            <div class="layui-form-item">
                <label for="merchant" class="layui-form-label">
                    <span class="x-red">*</span>商户账号
                </label>
                <div class="layui-input-inline">
                    <input type="text" id="merchant" name="merchant" required="" lay-verify="required"
                    autocomplete="off" class="layui-input" style="width:300px;" value="{$info.merchant}">
                </div>
            </div>
            <div class="layui-form-item">
                <label for="merchantpid"" class="layui-form-label">
                    <span class="x-red">*</span>商户PID
                </label>
                <div class="layui-input-inline">
                    <input type="text" id="merchantpid"" name="merchantpid" required="" lay-verify="required"
                    autocomplete="off" class="layui-input" style="width:300px;" value="{$info.merchantpid}">
                </div>
            </div>
            <div class="layui-form-item">
                <label for="accredit" class="layui-form-label">
                    <span class="x-red">*</span>生活缴费token
                </label>
                <div class="layui-input-inline">
                    <input type="text" id="accredit" name="accredit" required="" lay-verify="required"
                    autocomplete="off" class="layui-input" style="width:300px;" value="{$info.accredit}">
                </div>
            </div>
            
<!--            <div class="layui-form-item">-->
<!--                <label for="parking_accredit" class="layui-form-label">-->
<!--                    <span class="x-red">*</span>停车收费token-->
<!--                </label>-->
<!--                <div class="layui-input-inline">-->
<!--                    <input type="text" id="parking_accredit" name="parking_accredit" required="" lay-verify="required"-->
<!--                    autocomplete="off" class="layui-input" style="width:300px;" value="{$info.parking_accredit}">-->
<!--                </div>-->
<!--            </div>-->
          <div class="layui-form-item">
              <label for="L_repass" class="layui-form-label">
              </label>
              <button  class="layui-btn" lay-filter="add" lay-submit="">
                  修改物业
              </button>
          </div>
      </form>
    </div>

    <script>
        layui.use(['form','layer'], function(){
            $ = layui.jquery;
          var form = layui.form
          ,layer = layui.layer;
        
          //自定义验证规则
    });
    </script>
    <script>var _hmt = _hmt || []; (function() {
        var hm = document.createElement("script");
        hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(hm, s);
      })();</script>
  </body>

</html>